include_once(MODX_BASE_PATH.'assets/modules/item_manager/classes/item_manager.class.php');
include_once(MODX_BASE_PATH.'assets/modules/item_manager/classes/template_parser.class.php');

$template_parser = new TemplateParser($modx);
$template_parser->content['create_database'] = false;
$item_manager = new ItemManager($template_parser, $modx);

$template_parser->content = $template_parser->getLang();
$template_parser->content['theme'] = $template_parser->getTheme();
$template_parser->content['datepicker.offset'] = $modx->config['datepicker_offset'];
$template_parser->content['datetime.format'] = $modx->config['datetime_format'];

$item_manager->process();
echo $template_parser->parseTemplate('main.tpl', $template_parser->content);